package com.dx.common.table.ppt;

/**
 * Spc_bis_grp_mainId entity. @author MyEclipse Persistence Tools
 */

public class Spc_bis_grp_mainId implements java.io.Serializable {

	// Fields

	private String col_typ;
	private String grp_no;

	// Constructors

	/** default constructor */
	public Spc_bis_grp_mainId() {
	}

	/** full constructor */
	public Spc_bis_grp_mainId(String col_typ, String grp_no) {
		this.col_typ = col_typ;
		this.grp_no = grp_no;
	}

	// Property accessors

	public String getCol_typ() {
		return this.col_typ;
	}

	public void setCol_typ(String col_typ) {
		this.col_typ = col_typ;
	}

	public String getGrp_no() {
		return this.grp_no;
	}

	public void setGrp_no(String grp_no) {
		this.grp_no = grp_no;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Spc_bis_grp_mainId))
			return false;
		Spc_bis_grp_mainId castOther = (Spc_bis_grp_mainId) other;

		return ((this.getCol_typ() == castOther.getCol_typ()) || (this
				.getCol_typ() != null && castOther.getCol_typ() != null && this
				.getCol_typ().equals(castOther.getCol_typ())))
				&& ((this.getGrp_no() == castOther.getGrp_no()) || (this
						.getGrp_no() != null && castOther.getGrp_no() != null && this
						.getGrp_no().equals(castOther.getGrp_no())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getCol_typ() == null ? 0 : this.getCol_typ().hashCode());
		result = 37 * result
				+ (getGrp_no() == null ? 0 : this.getGrp_no().hashCode());
		return result;
	}

}